feat: add custom batch-sizing to cli options#200
Conversation
|
Is the project abandoned? Batching would be very helpful, but I see there haven't been any updates since before this pull was opened. |
|
It's alive, I just work full time and have other side projects too. I'd love to return to this soon and make some updates. |
|
Thanks for the confirmation @JamieMason. This PR is a must right now and it seems to be working as well. Can you please merge this one? |
Totally understandable. (And of course, thanks for all your work on this!) I ended up building the binary from the code with these changes in place, and I ran it on a pile of thousands of images with a batch size of 50, it worked great. Thanks troyxmccall, you saved me the time and effort of making these changes myself, or writing a wrapper script! |
|
Thanks both, I'm not trying to drag my heels I just have 2 other projects I'm working on. I would like to rewrite this in Rust at some point as I've been enjoying that, but I'll try to cut a release this weekend with your changes in. |
Description (What)
added option for declaring custom batch sizes, ie:
--batch-size 5, if no option is specified, the batch defaults to the original 300 countJustification (Why)
Older hardware experiences a regression of #173
on
❯ neofetch 'c. admin@mac-mini.local ,xNMM. ---------------------- .OMMMMo OS: macOS 12.7.1 21G920 x86_64 OMMM0, Host: Macmini7,1 .;loddo:' loolloddol;. Kernel: 21.6.0 cKMMMMMMMMMMNWMMMMMMMMMM0: Uptime: 5 hours, 3 mins .KMMMMMMMMMMMMMMMMMMMMMMMWd. Packages: 185 (brew) XMMMMMMMMMMMMMMMMMMMMMMMX. Shell: bash 5.2.21 ;MMMMMMMMMMMMMMMMMMMMMMMM: Resolution: 1920x1080 :MMMMMMMMMMMMMMMMMMMMMMMM: DE: Aqua .MMMMMMMMMMMMMMMMMMMMMMMMX. WM: Quartz Compositor kMMMMMMMMMMMMMMMMMMMMMMMMWd. WM Theme: Blue (Dark) .XMMMMMMMMMMMMMMMMMMMMMMMMMMk Terminal: Apple_Terminal .XMMMMMMMMMMMMMMMMMMMMMMMMK. Terminal Font: SFMono-Regular kMMMMMMMMMMMMMMMMMMMMMMd CPU: Intel i5-4278U (4) @ 2.60GHz ;KMMMMMMMWXXWMMMMMMMk. GPU: Intel Iris .cooc,. .,coo:. Memory: 5274MiB / 8192MiBHow Can This Be Tested?
yarn build ./imageoptim --batch-size 10 ~/path/to/folder/